#include <iostream>
using namespace std;
class Date 
{
	int nyear; 
	int nmonth ;
	int nday;
public:
	Date();
	
	Date(int year, int month, int day);
	
	void setDate(int year = 2021, int month = 4, int day = 16);
	void showDate();
	Date(Date& p);
	int getnyear() 
	{
		return nyear;
	}
	int getnmonth()
	{
		return nmonth;
	}
	int getnday() 
	{
		return nday;
	}

};
void Date::setDate(int year, int month, int day)
{
	nyear = year;
	nmonth = month;
	nday = day;
}
void Date::showDate()
{
	cout << nyear << "/" << nmonth << "/" << nday << endl;
}
Date::Date(Date& p) {
	nyear = p.nyear;
	nmonth = p.nmonth;
	nday = p.nday;
}
Date::Date()
{
	nyear = 2021;
	nmonth = 4;
	nday = 16;
}
Date::Date(int year, int month, int day)
{
	nyear = year;
	nmonth = month;
	nday = day;
}
int main() {

	Date d1;

	d1.showDate();

	Date d2(2021, 3, 13);

	d2.showDate();

	d2.setDate(2021, 5, 1);

	d2.showDate();

	Date d3(d1);

	d3.showDate();

	return 0;

}
